<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
   pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Create new book</title>
<link rel="stylesheet" type="text/css" href="css/book_store.css"/>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="book_store.js"></script>
</head>
<body>
	<%@include file="frame.jsp" %>
	<div id="book_content" class="working_frame content">
	<div class="header header2">
		CREATE NEW BOOK
	</div>
	<form class="create_book" action="createBook" method="post">
        <table cellpadding="3pt" style="margin: auto;">
            <tr>
                <td><div class="form_field">Title :</div></td>
                <td><input type="text" name="bookTitle" size="30" /></td>
            </tr>
            <tr>
                <td><div class="form_field">Author :</div></td>
                <td><input type="text" name="bookAuthor" size="30" /></td>
            </tr>
            <tr>
                <td><div class="form_field">Price :</div></td>
                <td><input type="text" name="bookPrice" size="30" /> $</td>
            </tr>
            <tr>
                <td><div class="form_field">Category :</div></td>
                <td>
                	<select id="categories" name="categoryId"></select>
                	<script type="text/javascript">
                		loadAllCategoryForCombobox();
                	</script>
               	</td>
            </tr>
            <tr>
                <td><div class="form_field">Description :</div></td>
                <td>
                	<textarea name="bookDesc" style="width: 500px;height: 200px;"></textarea>
                </td>
            </tr>
            <tr>
            	<td colspan="2" align="center">
            		<input type="submit" value="Create" style="font-size: 18px"/>
            	</td>
            </tr>
        </table>
   		</form>		
	</div>
</body>
</html>